﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
using WorkFlowCore.Conditions;
using WorkFlowCore.Selector.Conditions;
using WorkFlowCore.Selector.UserSelectors;
using WorkFlowCore.UserSelectors;

namespace WorkFlowCore.Selector
{
    public static class SelectorService
    {
        public static void AddWorkFlowCoreSelectors(this IServiceCollection services)
        {
            var assembly = typeof(SelectorService).Assembly;
            UserSelectorManager.RegisterSelector(assembly);
            ConditionManager.Registercondition(assembly);
            services.AddScoped<ConditionA>();
            services.AddScoped<GeneralCondition>();
            services.AddScoped<UserSelectorA>();
            services.AddScoped<UserSelectorB>();
        }
    }
}
